package com.sfc.spiderweb.eunm;

import lombok.Getter;

public enum ReshipType {

    MAINS(0, "主单"), BRANCH(1, "分单"), RESEND(2, "重寄单"), REFUND(3, "退款单"), MARGE(4, "合并单"), NO_FIND(5, "未匹配到");

    @Getter
    private Integer type;

    @Getter
    private String value;

    ReshipType(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    public static String getReshipType(Integer type) {
        switch (type) {
            case 0:
                return MAINS.getValue();
            case 1:
                return BRANCH.getValue();
            case 2:
                return RESEND.getValue();
            case 3:
                return REFUND.getValue();
            case 4:
                return MARGE.getValue();
            case 5:
                return NO_FIND.getValue();
            default:
                return "无类型";
        }

    }
}
